package com.github.edu.repair.manager.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

/**
 * 楼宇区域
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-20
 */
@Entity
@Table(name = "t_bx_lyqy")
public class TBxLyqy implements Serializable {
    private Integer id;
    private Integer sfqy;
    private String qymc;

    @Id
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "sfqy")
    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        this.sfqy = sfqy;
    }

    @Basic
    @Column(name = "qymc")
    public String getQymc() {
        return qymc;
    }

    public void setQymc(String qymc) {
        this.qymc = qymc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TBxLyqy tBxLyqy = (TBxLyqy) o;
        return Objects.equals(id, tBxLyqy.id) &&
                Objects.equals(sfqy, tBxLyqy.sfqy) &&
                Objects.equals(qymc, tBxLyqy.qymc);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, sfqy, qymc);
    }
}
